package com.easylinkin.linkappapi.childinspection.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.easylinkin.linkappapi.childinspection.entity.InspectionPointEntity;
import com.easylinkin.linkappapi.childinspection.vo.BaseVo;
import com.easylinkin.linkappapi.childinspection.vo.InspectionPointVo;
import com.easylinkin.linkappapi.childinspection.vo.RelationVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author linWenLe
 * @Date: 2024/4/3
 * @Description:
 */
public interface InspectionPointMapper extends BaseMapper<InspectionPointEntity> {

    IPage<InspectionPointEntity> getInspectionPointList(Page page, @Param("model") InspectionPointVo model);

    String selectMaxCode();

    List<InspectionPointEntity> selectPointList(String id);

    IPage<InspectionPointEntity> getTodayTaskInfo(Page page, @Param("model") BaseVo customQueryParams);

    void updateByQrCode(RelationVo relationVo);

    void updatePointByQrCode(RelationVo relationVo);

    int selectCurrentTaskByPointId(String pointId);
}
